# robotpkg Makefile for:	net/zeromq
# Created:			Azamat Shakhimardanov on Thu, 7 Oct 2010
#

PKGVERSION=	2.0.10
DISTNAME=	zeromq-${PKGVERSION_NOREV}
CATEGORIES=	net
MASTER_SITES=	http://download.zeromq.org/

MAINTAINER=	robotpkg@laas.fr
HOMEPAGE=	http://www.zeromq.org/
COMMENT=	Small and fast socket communication library
LICENSE=	gnu-lgpl-v3

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=have_python=yes

# pgm option
include ../../mk/robotpkg.prefs.mk # OPSYS
ifneq (,$(filter Linux Solaris,${OS_KERNEL} ${OPSYS}))
  PKG_SUPPORTED_OPTIONS+=	pgm
  PKG_SUGGESTED_OPTIONS+=	pgm
endif
PKG_OPTION_DESCR.doc?=	Compile Pragmatic General Multicast (PGM) support

define PKG_OPTION_SET.pgm
  CONFIGURE_ARGS+=	--with-pgm

  DEPEND_ABI.python+=	python<3

  include ../../pkgtools/pkg-config/depend.mk
  include ../../mk/sysdep/glib2.mk
  include ../../mk/sysdep/perl.mk
  include ../../mk/sysdep/python.mk
endef

ifneq (,$(filter Linux Solaris,${OS_KERNEL} ${OPSYS}))
  include ../../mk/sysdep/libuuid.mk
endif
include ../../mk/language/c.mk
include ../../mk/language/c++.mk
include ../../mk/robotpkg.mk
